package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SellMapper;
import com.ruoyi.system.domain.Sell;
import com.ruoyi.system.service.ISellService;

/**
 * sellService业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-13
 */
@Service
public class SellServiceImpl implements ISellService 
{
    @Autowired
    private SellMapper sellMapper;

    /**
     * 查询sell
     * 
     * @param id sell主键
     * @return sell
     */
    @Override
    public Sell selectSellById(Long id)
    {
        return sellMapper.selectSellById(id);
    }

    /**
     * 查询sell列表
     * 
     * @param sell sell
     * @return sell
     */
    @Override
    public List<Sell> selectSellList(Sell sell)
    {
        return sellMapper.selectSellList(sell);
    }

    /**
     * 新增sell
     * 
     * @param sell sell
     * @return 结果
     */
    @Override
    public int insertSell(Sell sell)
    {
        return sellMapper.insertSell(sell);
    }

    /**
     * 修改sell
     * 
     * @param sell sell
     * @return 结果
     */
    @Override
    public int updateSell(Sell sell)
    {
        return sellMapper.updateSell(sell);
    }

    /**
     * 批量删除sell
     * 
     * @param ids 需要删除的sell主键
     * @return 结果
     */
    @Override
    public int deleteSellByIds(Long[] ids)
    {
        return sellMapper.deleteSellByIds(ids);
    }

    /**
     * 删除sell信息
     * 
     * @param id sell主键
     * @return 结果
     */
    @Override
    public int deleteSellById(Long id)
    {
        return sellMapper.deleteSellById(id);
    }
}
